package com.margo.project.webservice.margoservice;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.margo.project.service.MargoRestService;

@Service
@WebService(serviceName = "MargoWebService", // 与接口中指定的name一致
        targetNamespace = "http://margoservice.webservice.project.margo.com/", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.margo.project.webservice.margoservice.MargoWebService" // 接口地址
)
public class MargoWebServiceImpl implements MargoWebService{
	
	@Autowired
	private MargoRestService margoRestService;

	@Override
	public String hello(String name) {
		return margoRestService.hello()+"hello"+name;
	}

	@Override
	public String word(String name) {
		return "hello"+name;
	}

}
